<?php


class Paiement {
    private $id_pai;
    private $libelle_pai;


    public function __construct($valeur = array()){
        if(!empty($valeur)){
            $this->affecte($valeur);

        }
    }

    public function affecte($donnees){
        foreach ($donnees as  $attribut => $valeur){
            switch($attribut){
                case 'id_pai': $this->setIdPai($valeur);
                    break;
                case 'libelle_pai': $this->setLibellePai($valeur);
                    break;

            }
        }
    }

    /**
     * @param mixed $id_pai
     */
    public function setIdPai($id_pai)
    {
        $this->id_pai = $id_pai;
    }

    /**
     * @return mixed
     */
    public function getIdPai()
    {
        return $this->id_pai;
    }

    /**
     * @param mixed $libelle_pai
     */
    public function setLibellePai($libelle_pai)
    {
        $this->libelle_pai = $libelle_pai;
    }

    /**
     * @return mixed
     */
    public function getLibellePai()
    {
        return $this->libelle_pai;
    }



} 